<include file="Public:header" />
<style>
  .ncenter_box{padding:0px}
  .treep2{display:none;}
  .sub_bav td {
    border: 0px solid #D0D0D0 !important;
    border-collapse: collapse;
    padding: 2px;
  }
  table{ border:0px !important; padding:0px !important;}
  td{ border:0px !important; padding:0px !important;}
  /*p,div{ line-height:0px !important;}*/
</style>

<load href="__PUBLIC__/Js/tree.js" />
<div class="ncenter_box">
  <div class="accounttitle"><h1>我的团队</h1></div>
  <div style="height: 30px;"></div>

  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <form method='post' action="__URL__/TreeAjax/">
      <tr>
        <td height="30" style=""><span style="padding-left:10px;">会员编号：</span></td>
        <td> <input type="text" name="UserID" title="帐号查询" style="background: #DDAB34;height:30px;border-radius: 2px;text-indent: 10px" > </td>
        <td><input type="submit" name="Submit" value="查询" class="btn1"/> </td>
      </tr>
      <tr style="height:40px">
        <td><span style="padding-left:10px">  团队人数：</span><td>{$all_nn}</b> 人</td>
      </tr>
    </form>
    <tr>
      <td>{$myStr}</td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" id="{$myTabN}">
    <tr>
      <td>
        <volist name="z_tree" id="z_tt">
          <div>{$z_tt[0]}</div>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" id="{$z_tt[1]}" class="treep2">
            <tr>
              <td id="{$z_tt[1]}_tree">{$z_tt[2]}<img src="__PUBLIC__/Images/loading2.gif" align="absmiddle"></td>
            </tr>
          </table>
        </volist>
      </td>
    </tr>
  </table>

</div>



<script>
    function openmm(oid,tid,mid,numm,ppath){
        var tobj = document.getElementById(oid);
        var mobj = document.getElementById(tid);
        var cmid = "o"+tid;
        var cobj = document.getElementById(cmid);
        var coimg = cobj.src;
        if(tobj.className=="treep2"){
            tobj.className="treep1";
            var opppid = oid+"_tree";
            ajaxChech(opppid,mid,numm,ppath)
        }else{
            tobj.className="treep2";
        }
        cobj.src = mobj.src;
        mobj.src = coimg;


    }
    function ajaxChech(vid,aid,nnn,pp){
        var xmlHttp;
        try{
            //FF Opear 8.0+ Safair
            xmlHttp=new XMLHttpRequest();
        }
        catch(e){
            try{
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch(e){
                alert("您的浏览器不支持AJAX");
                return false;
            }
        }
        xmlHttp.onreadystatechange=function(){
            if(xmlHttp.readyState==4){
                var valuet = xmlHttp.responseText;
                document.getElementById(vid).innerHTML=valuet;
            }
        }
        var url="__URL__/ajax_tree_m/";
        url+="/reid/"+aid+"/nn/"+nnn+"/pp/"+pp;
        xmlHttp.open("GET",url,true);
        xmlHttp.send(null);
    }
</script>


<include file="Public:footer" />